import request from '@/utils/request'

export const getParkSpacePageApi = async (params: any) => {
    return request.get('/park-space', { params })
}

export const getParkSpaceOptionListApi = async () => {
    return request.get('/park-space/option-list')
}

export const getParkSpaceByIdApi = async (id: string) => {
    return request.get(`/park-space/${id}`)
}

export const createParkSpaceApi = async (data: any) => {
    return request.post('/park-space', data)
}

export const updateParkSpaceApi = async (id: any, data: any) => {
    return request.put(`/park-space/${id}`, data)
}

export const deleteParkSpaceApi = async (id: string) => {
    return request.delete(`/park-space/${id}`)
}
